﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace WindowsFormsApplication4
{
    public partial class NhanVien : Form
    {
        public NhanVien()
        {
            InitializeComponent();
        }

        private void nhanVienBindingNavigatorSaveItem_Click(object sender, EventArgs e)
        {
            this.Validate();
            this.nhanVienBindingSource.EndEdit();
            this.tableAdapterManager.UpdateAll(this.loanPSDataSet);

        }

        private void NhanVien1_Load(object sender, EventArgs e)
        {
            // TODO: This line of code loads data into the 'loanPSDataSet.QuyenDangNhap' table. You can move, or remove it, as needed.
            this.quyenDangNhapTableAdapter.Fill(this.loanPSDataSet.QuyenDangNhap);
            // TODO: This line of code loads data into the 'loanPSDataSet.ChucVu' table. You can move, or remove it, as needed.
            this.chucVuTableAdapter.Fill(this.loanPSDataSet.ChucVu);
            // TODO: This line of code loads data into the 'loanPSDataSet.PhongBan' table. You can move, or remove it, as needed.
            this.phongBanTableAdapter.Fill(this.loanPSDataSet.PhongBan);
            // TODO: This line of code loads data into the 'loanPSDataSet.NhanVien' table. You can move, or remove it, as needed.
            this.nhanVienTableAdapter.Fill(this.loanPSDataSet.NhanVien);

        }

        private void nhanVienDataGridView_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {

        }

        private void pictureBox5_Click(object sender, EventArgs e)
        {
            DialogResult d1 = MessageBox.Show("ban chac chan muoc thoat khoi From Nhan Vien", "thong bao", MessageBoxButtons.OKCancel, MessageBoxIcon.Information);
            if (d1 == DialogResult.OK)
                this.Close();
        }

        private void textBox3_TextChanged(object sender, EventArgs e)
        {

        }
       
    }
}
